<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qtqml-cpp.qdoc -->
  <title>Qt QML C++ Classes | Qt QML 5.12.3</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.12</a></td><td ><a href="qtqml-index.html">Qt QML</a></td><td >
			Qt QML C++ <span lang="zh-cn">类</span></td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtqml-index.html">Qt 5.12.3 参考指南</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">目录</a></h3>
<ul>
<li class="level1"><a href="#namespaces"><span lang="zh-cn">命名空间</span></a></li>
<li class="level1"><a href="#classes"><span lang="zh-cn">类</span></a></li>
<li class="level1"><a href="#details">详细信息</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt QML C++ <span lang="zh-cn">类</span></h1>
<span class="subtitle"></span>
<!-- $$$QtQml-brief -->
<p>Qt QML模块提供的C++ API。 <a href="#details">更多...</a></p>
<!-- @@@QtQml -->
<a name="namespaces"></a>
<h2 id="namespaces"><span lang="zh-cn">命名空间</span></h2>
<div class="table"><table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="qtqml.html">QtQml</a></p></td><td class="tblDescr"><p>
	提供为QML类型生成日志消息的函数</p></td></tr>
</table></div>
<a name="classes"></a>
<h2 id="classes">Classes</h2>
<div class="table"><table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlcontext-propertypair.html">QQmlContext::PropertyPair</a></p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qjsengine.html">QJSEngine</a></p></td><td class="tblDescr"><p>
	评估JavaScript代码的环境</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qjsvalue.html">QJSValue</a></p></td><td class="tblDescr"><p>
	作为Qt/JavaScript数据类型的容器</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qjsvalueiterator.html">QJSValueIterator</a></p></td><td class="tblDescr"><p>
	QJSValue的java风格迭代器</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlabstracturlinterceptor.html">QQmlAbstractUrlInterceptor</a></p></td><td class="tblDescr"><p>
	允许您控制QML文件加载</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlapplicationengine.html">QQmlApplicationEngine</a></p></td><td class="tblDescr"><p>
	从单个QML文件加载应用程序的方便方法</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlcomponent.html">QQmlComponent</a></p></td><td class="tblDescr"><p>
	封装一个QML组件定义</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlcontext.html">QQmlContext</a></p></td><td class="tblDescr"><p>
	在QML引擎中定义上下文</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlengine.html">QQmlEngine</a></p></td><td class="tblDescr"><p>
	实例化QML组件的环境</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlerror.html">QQmlError</a></p></td><td class="tblDescr"><p>
	封装一个QML错误</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlexpression.html">QQmlExpression</a></p></td><td class="tblDescr"><p>
	在QML上下文中计算JavaScript</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlextensionplugin.html">QQmlExtensionPlugin</a></p></td><td class="tblDescr"><p>
	自定义QML扩展插件的抽象基础</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlfileselector.html">QQmlFileSelector</a></p></td><td class="tblDescr"><p>
	用于将QFileSelector应用到QML文件加载的类</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlimageproviderbase.html">QQmlImageProviderBase</a></p></td><td class="tblDescr"><p>
	用于在QML引擎中注册图像提供程序</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlincubationcontroller.html">QQmlIncubationController</a></p></td><td class="tblDescr"><p>
	实例驱动QQmlIncubators的进程</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlincubator.html">QQmlIncubator</a></p></td><td class="tblDescr"><p>
	允许异步创建QML对象</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmllistproperty.html">QQmlListProperty</a></p></td><td class="tblDescr"><p>
	<span lang="zh-cn">允许应用程序将QObject派生类的列表属性暴露给QML</span></p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmllistreference.html">QQmlListReference</a></p></td><td class="tblDescr"><p>
	<span lang="zh-cn">允许对QQmlListProperty 属性进行操作</span></p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlnetworkaccessmanagerfactory.html">QQmlNetworkAccessManagerFactory</a></p></td><td class="tblDescr"><p>
	为QML引擎创建QNetworkAccessManager实例</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlparserstatus.html">QQmlParserStatus</a></p></td><td class="tblDescr"><p>
	QML解析器状态的更新</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlproperty.html">QQmlProperty</a></p></td><td class="tblDescr"><p>
	抽象访问从QML创建的对象的属性</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlpropertymap.html">QQmlPropertyMap</a></p></td><td class="tblDescr"><p>
	允许您设置可在QML绑定中使用的键值对</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qqmlpropertyvaluesource.html">QQmlPropertyValueSource</a></p></td><td class="tblDescr"><p>
	接口用于属性值源，如动画和绑定</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qqmlscriptstring.html">QQmlScriptString</a></p></td><td class="tblDescr"><p>
	封装脚本及其上下文</p></td></tr>
</table></div>
<!-- $$$QtQml-description -->
<a name="details"></a>
<div class="descr">
<h2 id="details">详细信息</h2>
<p>要包含模块类的定义，请使用以下指令:</p>
<pre class="cpp">

  <span class="preprocessor">#include &lt;QtQml&gt;</span>

</pre>
<p>要链接该模块，请将以下行添加到<a href="../qmake/qmake-manual.html">qmake</a><code>.pro</code>文件中:</p>
<pre class="cpp">

  QT += qml

</pre>
<p>有关<a href="qtqml-index.html">Qt QML</a>模块的更多信息，请参阅Qt QML模块文档。</p>
</div>
<!-- @@@QtQml -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
